home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / misc / o-z / x-windows / mesa-amiwin / glut / readme-mesa
Encoding:
Text File  |  1995-11-15  |  1.9 KB  |  65 lines

  1.  
  2.  
  3.           Instructions for Using GLUT with Mesa
  4.  
  5.  
  6. Mark Kilgard's GLUT (OpenGL Utility Toolkit) is a toolkit for quickly
  7. and easily writing OpenGL demos and simple applications.  It's much nicer
  8. than the aux and tk toolkits.  Mark's implementation of GLUT depends on
  9. the OpenGL/X interface GLX.  Mesa's pseudo-GLX functions work well enough
  10. to support GLUT.
  11.  
  12. GLUT has been used successfully with Mesa on many systems.  If you have
  13. problems contact Brian Paul if you think the problem is caused by Mesa.
  14. Contact Mark Kilgard, or post to the Mesa mailing list, if you think the
  15. problem is in GLUT.
  16.  
  17. Note that Mesa 1.2.2 requires GLUT 2.2 or later.
  18.  
  19. Here's how to build GLUT 2.3 using Mesa:
  20.  
  21. 1. Ftp to sgigate.sgi.com and go to the pub/opengl/xjournal/GLUT directory.
  22.    Get the glut.2.3.tar.Z file.  Make sure your copy ends up in this dir-
  23.    ectory  (i.e. Mesa/GLUT/).
  24.  
  25. 2. Unpack the GLUT distribution file with:
  26.     zcat glut.2.3.tar.Z | tar xvf -
  27.  
  28. 3. Make a backup copy of Glut.cf in case you want the original:
  29.     cp Glut.cf Glut.cf.orig
  30.  
  31.  
  32. 4. If you're using a Sun with Solaris then define the following two
  33.    environment variables from your shell:
  34.  
  35.     OGLHOME    to where you've installed Mesa (maybe /usr/home/brian/Mesa)
  36.     OPENWINHOME to something like /usr/openwin
  37.  
  38.    Otherwise, edit Glut.cf as follows:
  39.  
  40.     change:        EXTRA_INCLUDES = -I$(TOP)
  41.     to look like:    EXTRA_INCLUDES = -I$(TOP)/../include -I$(TOP)
  42.  
  43.     change:        OPENGL = -lGL
  44.     to look like:    OPENGL = $(TOP)/../lib/libMesaGL.a
  45.  
  46.     change:        GLU = -lGLU
  47.     to look like:    GLU = $(TOP)/../lib/libMesaGLU.a
  48.  
  49.    NOTE: if you made shared Mesa libraries, the suffixes might be .so instead
  50.    of .a
  51.  
  52. 5. Run the mkmkfiles.imake script:
  53.     mkmkfiles.imake
  54.  
  55. 6. Run make:
  56.     make
  57.  
  58. 7. If all goes well there should be some executables in the progs/
  59.    directories for you to try out.
  60.  
  61. 8. You may want to copy the lib/glut/libglut.a file to wherever you have
  62.    your Mesa libraries (libMesaGL.a, libMesaGLU.a, etc) if you're going to
  63.    use it for your own work.
  64.  
  65.